<?php
/**
 * Created by PhpStorm.
 * User: zd
 * Date: 2019/3/14
 * Time: 14:55
 */

namespace app\api\model;


class MessageTemplate extends BaseModel
{
    /**
     * 获取模板消息id
     * @param $t_id
     * @param $a_id
     * @return array|false|\PDOStatement|string|\think\Model
     */
    public static function getTemplate($t_id,$a_id){
        return self::where('t_id','=',$t_id)
                ->where('title','=',$a_id)
                ->find();
    }
}